package cn.tedu.springDI;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestSpring {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext acac = new AnnotationConfigApplicationContext(SpringConfig.class);
        User user = acac.getBean("user", User.class);
        user.playGame();
    }
}
